﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhysicalCountRptQuery.aspx.cs"
    Inherits="WMS6.Web.Analytics.PhysicalCountRptQuery" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>PhysicalCountReportQuery</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">

        //初始化页面
        window.onload = function() {
            initQueryPage();
        }

        //窗口大小改变时触发的事件
        window.onresize = function() {
            autoResizeQueryDiv("div_query");
        }

        //弹出 打印 入库验收单 的窗口
        function popPrintPhysicalCountRpt()
         {
             var ShowLot = document.getElementById("ckbShowLot").checked;             
             var ShowLoc = document.getElementById("ckbShowLoc").checked;

             window.open('../Common/PrintReport.aspx?rtype=PHYSICALCOUNTRPT&ShowLot=' + ShowLot + '&ShowLoc=' + ShowLoc, 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        
        //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货品分类
        function selectSkuClass()
        {
            var rtnValue = popModalWindow('../Configuration/SkuClassQuery.aspx?action=txtSkuClassID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuClassID").focus();
                document.getElementById("txtSkuClassID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货品
        function selectSKU()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtSkuID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        
    </script>

</head>
<body>
    <form id="F15290" runat="server">
    <div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
        </div>
        <div id="div_query">
            <div id="con_one_1" style="display: block;">
                <table width="580px" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" meta:resourcekey="txtOwnerID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlOwnerID" runat="server" CssClass="selectbox" meta:resourcekey="ddlOwnerID">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品代码" meta:resourcekey="lblSkuID"></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" meta:resourcekey="txtSkuID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSKU();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSkuID" runat="server" CssClass="selectbox" meta:resourcekey="ddlSkuID">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                        <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblSkuDescr" runat="server" CssClass="label" Text="货品名称" ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtSkuDescr" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSkuDescr" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblSkuClassID" runat="server" CssClass="label" Text="货品分类代码" meta:resourcekey="lblSkuClassID"></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtSkuClassID" runat="server" CssClass="textbox" meta:resourcekey="txtSkuClassID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSkuClass();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSkuClassID" runat="server" CssClass="selectbox" meta:resourcekey="ddlSkuClassID">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblVendorID" runat="server" CssClass="label" Text="供应商代码" ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" meta:resourcekey="txtSkuClassID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();"/>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlVendorID" runat="server" CssClass="selectbox" meta:resourcekey="ddlSkuClassID">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>                    
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblExternalLot" runat="server" CssClass="label" Text="外部批号" ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                      <tr>
                        <td>
                            <asp:TextBox ID="txtExternalLot" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlExternalLot" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblLot" runat="server" CssClass="label" Text="批次号" ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLot" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLot" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                     <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblLpn" runat="server" CssClass="label" Text="LPN" ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLpn" runat="server" CssClass="textbox" ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLpn" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                    
                    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblStartLoc" runat="server" CssClass="label" Text="货位" 
                               ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtStartLoc" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtStartLoc"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlStartLoc" runat="server" CssClass="selectbox" 
                                meta:resourcekey="ddlStartLoc">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
               
                 <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblZoneID" runat="server" CssClass="label" Text="储区" 
                               ></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtZoneID" runat="server" CssClass="textbox" 
                               ></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlZoneID" runat="server" CssClass="selectbox" >
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>
                <%--    <tr>
                        <td style="width: 180px">
                            <asp:Label ID="lblEndLoc" runat="server" CssClass="label" Text="结束货位" 
                                meta:resourcekey="lblEndLoc"></asp:Label>
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtEndLoc" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtEndLoc"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlEndLoc" runat="server" CssClass="selectbox"  Visible="false"
                                meta:resourcekey="ddlEndLoc">
                            </asp:DropDownList>
                        </td>
                        <td>
                        </td>
                    </tr>--%>
                    <tr>
                        <td style="width: 180px">
                          
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                          <asp:CheckBox ID="ckbShowLoc" runat="server" Text="显示空货位" 
                                meta:resourcekey="ckbShowLoc"  />
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 180px">
                         
                        </td>
                        <td style="width: 30px">
                            &nbsp;
                        </td>
                        <td style="width: 160px">
                            &nbsp;
                        </td>
                        <td style="width: 200px">
                        </td>
                    </tr>
                    <tr>
                        <td>
                           <asp:CheckBox ID="ckbShowLot" runat="server" Text="显示批次属性" 
                                meta:resourcekey="ckbShowLot" />
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$ Resources:ButtonResource,btnSearch %>"
                            Enabled="False" CssClass="button" OnClick="btnSearch_Click"/>
                    </td>
                     <td>
                        <asp:Button ID="btnPrint" runat="server" Text="打印" onClick="btnPrint_Click"
                            Enabled="False" CssClass="button" meta:resourcekey="btnPrint" />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
    </div>
    </form>
</body>
</html>
